package com.dys.designpattern.builder.creater;

import com.dys.designpattern.builder.product.Bike;

/**
 * @Author: 疾风
 * @ClassName: Builder
 * @Description: 抽象建造者
 * @CreateDate: 2024/05/28
 * @Version: v1.0.0
 */
public abstract class Builder {

    /**
     * 创建共享单车对象
     */
    protected Bike bike = new Bike();

    /**
     * 建造车架
     */
    public abstract void buildFrame();

    /**
     * 建造车座
     */
    public abstract void buildSeat();

    /**
     * 建造共享单车
     *
     * @return 具体的共享单车
     */
    public abstract Bike createBike();
}
